package com.itheima.stock.api;

/**
 * @文件名: UserControllerAPI
 * @作者: DX
 * @创建日期: 2025/10/23
 * @描述:
 */

import com.itheima.stock.dto.LoginDTO;
import com.itheima.stock.vo.CaptchaVO;
import com.itheima.stock.vo.LoginVO;
import org.springframework.web.bind.annotation.*;
import com.itheima.stock.response.ResponseResult;

@RequestMapping( "/api")
public interface UserControllerAPI {


    @PostMapping("/login")
    ResponseResult<LoginVO> login(@RequestBody LoginDTO loginDto);

    @GetMapping(path = "/captcha")
    ResponseResult<CaptchaVO> Captcha();

    @GetMapping("/user/test")
    public String test(@RequestParam("name") String name);
}